/*
** draw.c for draw in /home/gjura_r//SDL/projet/includes
** 
** Made by romain gjura
** Login   <gjura_r@epitech.net>
** 
** Started on  Fri Apr 12 16:58:01 2013 romain gjura
** Last update Thu Apr 18 11:41:02 2013 romain gjura
*/

#ifndef DRAW_H_
# define DRAW_H_

#define WIDTH	640
#define HEIGTH	480
#define OBJ	12

#include <SDL/SDL.h>
#include "map.h"

typedef struct	s_aff
{
  SDL_Surface	*screen;
  SDL_Surface	*cam;
  SDL_Event	event;
}		t_aff;

typedef struct	s_ressource
{
  SDL_Surface	*r_tab[12];
  SDL_Rect	pos;
}		t_ressource;

int		init_sdl(t_map *);
int		wait_for_event(t_aff *, t_map *);
void		init_ressource(t_ressource *);

#endif
